﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace VNet.VisiSuite.Service.Contact.Message.ProductionData
{
    [DataContract(Namespace = VisiSuiteNamespace.Uri + "dto/ProductionMeterDataPoint")]
    public class ProductionMeterDataPoint
    {
        private DateTime _start_time;
        private DateTime _end_time;
        private int _legend;

        public ProductionMeterDataPoint(DateTime start_time, DateTime end_time, int legend)
        {
            _start_time = start_time;
            _end_time = end_time;
            _legend = legend;
        }

        public ProductionMeterDataPoint(ProductionMeterDataPoint dp)
        {
            _start_time = dp._start_time;
            _end_time = dp._end_time;
            _legend = dp._legend;
        }

        [DataMember(IsRequired = true)]
        public DateTime StartTime
        {
            get { return _start_time; }
            set { _start_time = value; }
        }

        [DataMember(IsRequired = true)]
        public DateTime EndTime
        {
            get { return _end_time; }
            set { _end_time = value; }
        }

        [DataMember(IsRequired = true)]
        public int Legend
        {
            get { return _legend; }
            set { _legend = value; }
        }

    }
}
